package com.nkym.common;/*
 * @ClassName BaseResponse
 * @Desc TODO
 * @Author 19637
 * @Date 2023/4/18 21:38
 * @Version 1.0
 */

import lombok.Data;

import java.io.Serializable;

@Data
public class BaseResponse<T> implements Serializable {
    int code;
    String message;
    T data;
    private static final long serialVersionUID = 1L;
    public BaseResponse( T data ,int code,String message){
        this.data = data;
        this.code= code;
        this.message = message;
    }
    public BaseResponse(int code,String message){
        this.code= code;
        this.message = message;
    }

    public BaseResponse() {
    }
}
